<?php

namespace App\Http\Controllers\Web;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class BaseController extends Controller
{   
    /**
     * 验证是否登录
     *
     * @param [type] $method
     * @param [type] $parameters
     * @return void
     */
    public function callAction($method, $parameters)
    {   
        if ( !session('retail_id')) {
            return self::error('请先登录', 2);
        }
        return call_user_func_array([$this, $method], $parameters);
    }

    
}
